package com.yzg.service;

import com.yzg.pojo.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yzg.pojo.vo.DiscountVO;
import com.yzg.pojo.vo.ProductSearch;

import java.util.Map;

/**
* @Author: decade
* @Description: ${description}
* @Date: 2021/1/13 20:26
**/
public interface ProductService extends IService<Product>{

    //获取商品列表
    Map<String, Object> getProductList(Integer page, Integer pageSize, ProductSearch productSearch);
    //根据商品id获取优惠信息
    DiscountVO getDiscount(Long id);
    //根据商品id修改优惠信息
    int updateDiscount(DiscountVO discountVO);
    //商品删除
    int deleteProductById(Long id);
}
